package com.boot.security.server.utils;


public enum ResultEnum {
    //这里是可以自己定义的，方便与前端交互即可
    UNKNOWN_ERROR(-1,"未知错误"),
    DATA_TYPE_ERROR(-2,"数据格式错误"),
    SUCCESS(10000,"成功"),
    USER_NOT_EXIST(100,"用户不存在"),
    USER_IS_EXISTS(101,"用户已存在"),
    COMPANY_ACCOUNT(102,"员工账号"),
    CUSTOM_ACCOUNT(103,"客户账号"),
    USER_IS_NOT_LOGIN(104,"用户没有登录"),
    DATA_IS_NULL(3,"数据为空"),
    PASSWORD_ERROR(105,"密码错误"),
    VERIFICATION_CODE_ERROR(106,"验证码错误"),
    MAIL_IS_NOT_ERROR(107,"邮箱不存在"),
    MAIL_SEND_ERROR(108,"邮件发送失败"),
    MAIL_IS_SEND_ERROR(109,"邮件已发送，请等待60秒后在操作")
    ;
    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
